package com.xuanyuan.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
//实体类 ORM框架 对象映射关系
//@Data //相当于生成了get和set方法
@AllArgsConstructor //有参数构造函数
@NoArgsConstructor //无参构造函数
//表映射成JavaBean类
public class Users {

        private int uId;//编号

        private  char uStatus;//状态

        private  String uName;//姓名

        private  String uUser;//用户名

        private  String uPwd;//密码

        @JsonFormat(pattern = "yyyy-MM-dd")
        private  Date  uBorn;//出生日期

    public char getuStatus() {
        return uStatus;
    }

    public void setuStatus(char uStatus) {
        this.uStatus = uStatus;
    }

    public String getuUser() {
        return uUser;
    }

    public void setuUser(String uUser) {
        this.uUser = uUser;
    }

    public Date getuBorn() {
        return uBorn;
    }

    public void setuBorn(Date uBorn) {
        this.uBorn = uBorn;
    }



    public int getuId() {
        return uId;
    }

    public void setuId(int uId) {
        this.uId = uId;
    }

    public String getuName() {
        return uName;
    }

    public void setuName(String uName) {
        this.uName = uName;
    }

    public String getuPwd() {
        return uPwd;
    }

    public void setuPwd(String uPwd) {
        this.uPwd = uPwd;
    }

    @Override
    public String toString() {
        return "Users{" +
                "uId=" + uId +
                ", uName='" + uName + '\'' +
                ", uPwd='" + uPwd + '\'' +
                ", uUser='" + uUser + '\'' +
                '}';
    }

}


